package com.nobug.controller.region;

import com.nobug.bean.BaseRespVo;
import com.nobug.service.region.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("admin/region/")
public class RegionController {

    /*public static RegionController objectFromData(String str) {

        return new com.google.gson.Gson().fromJson(str, RegionController.class);
    }*/

    @Autowired
    RegionService service;
    @RequestMapping("list")
    public BaseRespVo regionList() {

        return service.getRegionList();
    }
}
